﻿@{
    Layout = null;
    var moduleId = this.Context.Request.Query.GetInteger("MID");
    var not_id = this.Context.Request.Query["ID"];
}

<div class="easyui-layout" fit="true">
    <div data-options="region:'west',split:false,border:false" style="width:550px;">
        <form>
            <table class="form_table" border="0" style="width:100%">
                <tr>
                    <td width="160" align="right">上级菜单：</td>
                    <td colspan="3">
                        <input name="Id" style="display:none" value="" />
                        <input id="ParentID" name="ParentID" class="easyui-combotree" style="width: 400px"
                               data-options="url:'~/Systems/GetAppMenuTreeByID/@moduleId?NOT_ID=@not_id',method:'get',editable:false,valueField:'Id',textField:'Name',required:true" />
                    </td>
                </tr>
                <tr>
                    <td align="right">菜单编号：</td>
                    <td colspan="3">
                        <input name="Code" class="easyui-textbox" style="width:400px;" data-options="required:true" />
                    </td>
                </tr>
                <tr>
                    <td align="right">菜单名称：</td>
                    <td colspan="3">
                        <input name="Name" class="easyui-textbox" style="width:400px;" data-options="required:true" />
                    </td>
                </tr>
                <tr>
                    <td align="right">菜单说明：</td>
                    <td colspan="3">
                        <input name="Description" class="easyui-textbox" style="width:400px;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        路径：
                    </td>
                    <td colspan="3">
                        <input name="Url" class="easyui-textbox" style="width:400px;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        菜单图标：
                    </td>
                    <td colspan="3">
                        <input name="IconClassName" class="easyui-textbox" style="width:400px;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        是否启用：
                    </td>
                    <td colspan="3">
                        <input id="Enable" name="Enable" class="easyui-switchbutton" checked data-options="onText:'启用',offText:'停用'" style="width:100px;height:25px;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        是否支持折叠：
                    </td>
                    <td width="200">
                        <input id="CanFold" name="CanFold" class="easyui-switchbutton" checked data-options="onText:'是',offText:'否'" style="width:100px;height:25px;" />
                    </td>
                    <td width="100" align="right">
                        是否展开：
                    </td>
                    <td>
                        <input id="Expanded" name="Expanded" class="easyui-switchbutton" checked data-options="onText:'是',offText:'否'" style="width:100px;height:25px;" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        排序号：
                    </td>
                    <td colspan="3">
                        <input name="Sequence" class="easyui-numberspinner" style="width:400px;" data-options="min:0,precision:0,value:'0'" />
                    </td>
                </tr>

            </table>
        </form>
    </div>
    <div data-options="region:'center',border:false" style="border-left:solid 1px #ccc">
        <table class="easyui-datagrid" data-options="url:'~/Systems/GetAppOperations',method:'get',border:false,fit:true,fitColumns:true">
            <thead>
                <tr>
                    <th data-options="field:'ck',checkbox:true" width="30"></th>
                    <th data-options="field:'Code'" width="80">代码</th>
                    <th data-options="field:'Name'" width="80">名称</th>
                    <th data-options="field:'Description'" width="80">描述</th>
                </tr>
            </thead>
        </table>
    </div>
</div>


